package org.xtb.fun4;

public class Demo4 {
    public static String fun4(String input){
        Pipe pipe1 = new Pipe();
        Pipe pipe2 = new Pipe();
        Pipe pipe3 = new Pipe();
        Input input1 = new Input(input, pipe1);
        Shift shift = new Shift(pipe1, pipe2);
        Alphabetizer alphabetizer  = new Alphabetizer(pipe2, pipe3);
        Output output1 = new Output(pipe3);
        input1.transform();
        shift.transform();
        alphabetizer.transform();
        output1.transform();
        return output1.getOutput1();
    }
}

